package cn.edu.scau.cmi.ema.domain;


import javax.persistence.*;
import javax.xml.bind.annotation.*;
import java.io.Serializable;

@Entity
@NamedQueries({
		@NamedQuery(name = "findAllEvent9zwz_copys", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy"),
		@NamedQuery(name = "findEvent9zwz_copyByNumber", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.number = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyByNumberContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.number like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyByName", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.name = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyByNameContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.name like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyByFood", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.food = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyByFoodContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.food like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyByDiscoveryear", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.discoveryear = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyByDiscoveryearContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.discoveryear like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyByDiscoverymonth", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.discoverymonth = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyByDiscoverymonthContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.discoverymonth like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyByDiscoverydetailtime", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.discoverydetailtime = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyByDiscoverydetailtimeContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.discoverydetailtime like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyByDiscoveryprovince", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.discoveryprovince = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyByDiscoveryprovinceContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.discoveryprovince like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyByDiscoverydistrict", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.discoverydistrict = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyByDiscoverydistrictContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.discoverydistrict like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyByDiscoverycounty", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.discoverycounty = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyByDiscoverycountyContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.discoverycounty like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyBySourceprovince", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.sourceprovince = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyBySourceprovinceContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.sourceprovince like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyBySourcedistrict", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.sourcedistrict = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyBySourcedistrictContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.sourcedistrict like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyBySourcecounty", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.sourcecounty = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyBySourcecountyContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.sourcecounty like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyBySource", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.source = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyBySourceContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.source like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyBySubjectmaintype", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.subjectmaintype = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyBySubjectmaintypeContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.subjectmaintype like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyBySubject", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.subject = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyBySubjectContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.subject like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyByLaw", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.law = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyByLawContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.law like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyByFoodmaintype", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.foodmaintype = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyByFoodmaintypeContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.foodmaintype like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyByFoodsubtype", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.foodsubtype = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyByFoodsubtypeContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.foodsubtype like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyByAdultertype", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.adultertype = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyByAdultertypeContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.adultertype like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyByFoodbatchfiller", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.foodbatchfiller = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyByFoodbatchfillerContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.foodbatchfiller like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyByAdulterlink", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.adulterlink = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyByAdulterlinkContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.adulterlink like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyByDiscoverylink", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.discoverylink = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyByDiscoverylinkContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.discoverylink like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyByDetectmethod", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.detectmethod = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyByDetectmethodContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.detectmethod like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyByDescription", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.description = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyByDescriptionContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.description like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyByEffect", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.effect = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyByEffectContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.effect like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyByUrl", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.url = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyByUrlContaining", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.url like concat('%',?1,'%')"),
		@NamedQuery(name = "findEvent9zwz_copyByImported", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.imported = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyByIslocked", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.islocked = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyById", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.id = ?1"),
		@NamedQuery(name = "findEvent9zwz_copyByPrimaryKey", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.id = ?1 "),
		@NamedQuery(name = "deleteEvent9zwz_copysByIds", query = "delete Event9zwz_copy where id in (?1)"),
		@NamedQuery(name = "findEvent9zwz_copysByIds", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.id in (?1)"),
		@NamedQuery(name = "findEvent9zwz_copyByPhyscialPrimaryKey", query = "select myEvent9zwz_copy from Event9zwz_copy myEvent9zwz_copy where  myEvent9zwz_copy.name = ?1"),
		@NamedQuery(name = "countEvent9zwz_copysByName", query = "select count(myEvent9zwz_copy)  from Event9zwz_copy myEvent9zwz_copy where myEvent9zwz_copy.name like concat('%',?1,'%')") })
@Table(catalog = "ema", name = "event9zwz_copy")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(namespace = "ema/cn/edu/scau/cmi/ema/domain", name = "Event9zwz_copy")
@XmlRootElement(namespace = "ema/cn/edu/scau/cmi/ema/domain")

public class Event9zwz_copy implements Serializable, Comparable<Event9zwz_copy> {

	private static final long serialVersionUID = 1L;

	@Column(name = "id", nullable = false)
	@Basic(fetch = FetchType.EAGER)
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@XmlElement
	Integer id;

	@Column(name = "number")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String number;

	@Column(name = "name")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String name;

	@Column(name = "food")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String food;

	@Column(name = "discoveryear")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String discoveryear;

	@Column(name = "discoverymonth")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String discoverymonth;

	@Column(name = "discoverydetailtime")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String discoverydetailtime;

	@Column(name = "discoveryprovince")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String discoveryprovince;

	@Column(name = "discoverydistrict")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String discoverydistrict;

	@Column(name = "discoverycounty")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String discoverycounty;

	@Column(name = "sourceprovince")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String sourceprovince;

	@Column(name = "sourcedistrict")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String sourcedistrict;

	@Column(name = "sourcecounty")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String sourcecounty;

	@Column(name = "source")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String source;

	@Column(name = "subjectmaintype")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String subjectmaintype;

	@Column(name = "subject")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String subject;

	@Column(name = "law")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String law;

	@Column(name = "foodmaintype")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String foodmaintype;

	@Column(name = "foodsubtype")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String foodsubtype;

	@Column(name = "adultertype")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String adultertype;

	@Column(name = "foodbatchfiller")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String foodbatchfiller;

	@Column(name = "adulterlink")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String adulterlink;

	@Column(name = "discoverylink")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String discoverylink;

	@Column(name = "detectmethod")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String detectmethod;

	@Column(name = "description")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String description;

	@Column(name = "effect")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String effect;

	@Column(name = "url")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String url;

	@Column(name = "imported")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	Boolean imported;

	@Column(name = "islocked")
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	Boolean islocked;

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return this.id;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getNumber() {
		return this.number;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return this.name;
	}

	public void setFood(String food) {
		this.food = food;
	}

	public String getFood() {
		return this.food;
	}

	public void setDiscoveryear(String discoveryear) {
		this.discoveryear = discoveryear;
	}

	public String getDiscoveryear() {
		return this.discoveryear;
	}

	public void setDiscoverymonth(String discoverymonth) {
		this.discoverymonth = discoverymonth;
	}

	public String getDiscoverymonth() {
		return this.discoverymonth;
	}

	public void setDiscoverydetailtime(String discoverydetailtime) {
		this.discoverydetailtime = discoverydetailtime;
	}

	public String getDiscoverydetailtime() {
		return this.discoverydetailtime;
	}

	public void setDiscoveryprovince(String discoveryprovince) {
		this.discoveryprovince = discoveryprovince;
	}

	public String getDiscoveryprovince() {
		return this.discoveryprovince;
	}

	public void setDiscoverydistrict(String discoverydistrict) {
		this.discoverydistrict = discoverydistrict;
	}

	public String getDiscoverydistrict() {
		return this.discoverydistrict;
	}

	public void setDiscoverycounty(String discoverycounty) {
		this.discoverycounty = discoverycounty;
	}

	public String getDiscoverycounty() {
		return this.discoverycounty;
	}

	public void setSourceprovince(String sourceprovince) {
		this.sourceprovince = sourceprovince;
	}

	public String getSourceprovince() {
		return this.sourceprovince;
	}

	public void setSourcedistrict(String sourcedistrict) {
		this.sourcedistrict = sourcedistrict;
	}

	public String getSourcedistrict() {
		return this.sourcedistrict;
	}

	public void setSourcecounty(String sourcecounty) {
		this.sourcecounty = sourcecounty;
	}

	public String getSourcecounty() {
		return this.sourcecounty;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getSource() {
		return this.source;
	}

	public void setSubjectmaintype(String subjectmaintype) {
		this.subjectmaintype = subjectmaintype;
	}

	public String getSubjectmaintype() {
		return this.subjectmaintype;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getSubject() {
		return this.subject;
	}

	public void setLaw(String law) {
		this.law = law;
	}

	public String getLaw() {
		return this.law;
	}

	public void setFoodmaintype(String foodmaintype) {
		this.foodmaintype = foodmaintype;
	}

	public String getFoodmaintype() {
		return this.foodmaintype;
	}

	public void setFoodsubtype(String foodsubtype) {
		this.foodsubtype = foodsubtype;
	}

	public String getFoodsubtype() {
		return this.foodsubtype;
	}

	public void setAdultertype(String adultertype) {
		this.adultertype = adultertype;
	}

	public String getAdultertype() {
		return this.adultertype;
	}

	public void setFoodbatchfiller(String foodbatchfiller) {
		this.foodbatchfiller = foodbatchfiller;
	}

	public String getFoodbatchfiller() {
		return this.foodbatchfiller;
	}

	public void setAdulterlink(String adulterlink) {
		this.adulterlink = adulterlink;
	}

	public String getAdulterlink() {
		return this.adulterlink;
	}

	public void setDiscoverylink(String discoverylink) {
		this.discoverylink = discoverylink;
	}

	public String getDiscoverylink() {
		return this.discoverylink;
	}

	public void setDetectmethod(String detectmethod) {
		this.detectmethod = detectmethod;
	}

	public String getDetectmethod() {
		return this.detectmethod;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescription() {
		return this.description;
	}

	public void setEffect(String effect) {
		this.effect = effect;
	}

	public String getEffect() {
		return this.effect;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getUrl() {
		return this.url;
	}

	public void setImported(Boolean imported) {
		this.imported = imported;
	}

	public Boolean getImported() {
		return this.imported;
	}

	public void setIslocked(Boolean islocked) {
		this.islocked = islocked;
	}

	public Boolean getIslocked() {
		return this.islocked;
	}

	public void copy(Event9zwz_copy that) {

		setId(that.getId());

		setNumber(that.getNumber());
		setName(that.getName());
		setFood(that.getFood());
		setDiscoveryear(that.getDiscoveryear());
		setDiscoverymonth(that.getDiscoverymonth());
		setDiscoverydetailtime(that.getDiscoverydetailtime());
		setDiscoveryprovince(that.getDiscoveryprovince());
		setDiscoverydistrict(that.getDiscoverydistrict());
		setDiscoverycounty(that.getDiscoverycounty());
		setSourceprovince(that.getSourceprovince());
		setSourcedistrict(that.getSourcedistrict());
		setSourcecounty(that.getSourcecounty());
		setSource(that.getSource());
		setSubjectmaintype(that.getSubjectmaintype());
		setSubject(that.getSubject());
		setLaw(that.getLaw());
		setFoodmaintype(that.getFoodmaintype());
		setFoodsubtype(that.getFoodsubtype());
		setAdultertype(that.getAdultertype());
		setFoodbatchfiller(that.getFoodbatchfiller());
		setAdulterlink(that.getAdulterlink());
		setDiscoverylink(that.getDiscoverylink());
		setDetectmethod(that.getDetectmethod());
		setDescription(that.getDescription());
		setEffect(that.getEffect());
		setUrl(that.getUrl());
		setImported(that.getImported());
		setIslocked(that.getIslocked());

	}

	public Event9zwz_copy() {

	}

	@Override
	public String toString() {

		StringBuilder buffer = new StringBuilder();

		buffer.append("id=[").append(id).append("] ");

		buffer.append("number=[").append(number).append("] ");
		buffer.append("name=[").append(name).append("] ");
		buffer.append("food=[").append(food).append("] ");
		buffer.append("discoveryear=[").append(discoveryear).append("] ");
		buffer.append("discoverymonth=[").append(discoverymonth).append("] ");
		buffer.append("discoverydetailtime=[").append(discoverydetailtime).append("] ");
		buffer.append("discoveryprovince=[").append(discoveryprovince).append("] ");
		buffer.append("discoverydistrict=[").append(discoverydistrict).append("] ");
		buffer.append("discoverycounty=[").append(discoverycounty).append("] ");
		buffer.append("sourceprovince=[").append(sourceprovince).append("] ");
		buffer.append("sourcedistrict=[").append(sourcedistrict).append("] ");
		buffer.append("sourcecounty=[").append(sourcecounty).append("] ");
		buffer.append("source=[").append(source).append("] ");
		buffer.append("subjectmaintype=[").append(subjectmaintype).append("] ");
		buffer.append("subject=[").append(subject).append("] ");
		buffer.append("law=[").append(law).append("] ");
		buffer.append("foodmaintype=[").append(foodmaintype).append("] ");
		buffer.append("foodsubtype=[").append(foodsubtype).append("] ");
		buffer.append("adultertype=[").append(adultertype).append("] ");
		buffer.append("foodbatchfiller=[").append(foodbatchfiller).append("] ");
		buffer.append("adulterlink=[").append(adulterlink).append("] ");
		buffer.append("discoverylink=[").append(discoverylink).append("] ");
		buffer.append("detectmethod=[").append(detectmethod).append("] ");
		buffer.append("description=[").append(description).append("] ");
		buffer.append("effect=[").append(effect).append("] ");
		buffer.append("url=[").append(url).append("] ");
		buffer.append("imported=[").append(imported).append("] ");
		buffer.append("islocked=[").append(islocked).append("] ");

		return buffer.toString();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = (int) (prime * result + ((id == null) ? 0 : id.hashCode()));
		return result;
	}

	public boolean equals(Object obj) {
		if (obj == this)
			return true;
		if (!(obj instanceof Event9zwz_copy))
			return false;
		Event9zwz_copy comparedEvent9zwz_copy = (Event9zwz_copy) obj;
		if (!CheckPropertyEqual(this.name, comparedEvent9zwz_copy.name)) {
			return false;
		}
		return true;
	}

	public static <T> boolean CheckPropertyEqual(T originProperty, T comparedProperty) {
		// 基本类型经过参数传递后会自动装箱
		String[] className = originProperty.getClass().getName().split("\\.");
		if (className[0].equals("java") && className[1].equals("math")) {
			return ((Comparable) originProperty).compareTo(comparedProperty) == 0 ? true : false;
		} else {
			return originProperty.equals(comparedProperty);
		}
	}

	@Override
	public int compareTo(Event9zwz_copy o) {
		if (this.getId() > o.getId()) {
			return 1;
		} else if (this.getId() == o.getId()) {
			return 0;
		} else {
			return -1;
		}

	}
}
